<template>
  <div id="app">
    <router-view></router-view>
    <footer-guide v-show="$route.meta.showFooter"/>
  </div>
</template>

<script>
  import {mapActions} from 'vuex'
  import FooterGuide from './components/FooterGuide/FooterGuide'

  export default {
    name: "App",
    components: {
      FooterGuide
    },
    mounted() {
      // 异步获取当前地址信息
      this.getAddress();
      // 异步获取登陆用户信息
      this.getUserInfo();
    },
    methods: {
      ...mapActions(['getAddress','getUserInfo'])
    }
  }
</script>

<style scoped lang="stylus" ref="stylesheet/stylus">
  .app
    width 100%
    geight 100%
    background #f5f5f5
</style>
